package org.jeecg.common.modules.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: pay_order
 * @Author: jeecg-boot
 * @Date:   2020-08-26
 * @Version: V1.0
 */
@Data
@TableName("pay_order")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pay_order对象", description="pay_order")
public class PayOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**订单号，唯一*/
	@Excel(name = "订单号，唯一", width = 15)
    @ApiModelProperty(value = "订单号，唯一")
    private String orderCode;
	/**医生ID*/
	@Excel(name = "医生ID", width = 15)
    @ApiModelProperty(value = "医生ID")
    private String doctorId;
	/**患者ID*/
	@Excel(name = "wxUserinfoId ", width = 32)
    @ApiModelProperty(value = "wxUserinfoId ")
    private java.lang.String wxUserinfoId;
	/**第三方订单号*/
	@Excel(name = "第三方订单号", width = 15)
    @ApiModelProperty(value = "第三方订单号")
    private java.lang.String thirdOrderCode;
	/**支付金额，单位分*/
	@Excel(name = "支付金额，单位分", width = 15)
    @ApiModelProperty(value = "支付金额，单位分")
    private java.lang.Long amount;
	/**支付完成时间*/
	@Excel(name = "支付完成时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付完成时间")
    private java.util.Date endPayTime;
	/**开始支付时间*/
	@Excel(name = "开始支付时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始支付时间")
    private Date startPayTime;
	/**订单状态 0 未支付  1支付成功 2支付失败 3 已退款*/
	@Excel(name = "订单状态 0 未支付  1支付成功 2支付失败 3 已退款", width = 15)
    @ApiModelProperty(value = "订单状态 0 未支付  1支付成功 2支付失败 3 已退款")
    private Integer status;
	/**商品类型  1，医生图文消息  2，医生视频消息*/
	@Excel(name = "商品类型  1，医生图文消息  2，医生视频消息", width = 15)
    @ApiModelProperty(value = "商品类型  1，医生图文消息  2，医生视频消息")
    private Integer shopType;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

	@ApiModelProperty(value = "订单类型   1支付 2退款")
	private Integer orderType;

    @ApiModelProperty(value = "关联id")
	private String relationId;
    private String openid;
    private String medicalId;//病例Id
}
